﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TSqlServer;

public partial class system_loadmailtype : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string result = "";
        string sSql = "select infoid,infoname from t_sys_info2 where isshow='Y' and typeid='A01' order by orderby";
        TSqlDBReader myReader = new TSqlDBReader(sSql);
        while (myReader.FDataReader.Read())
        {
            string infoid = myReader.FDataReader.GetValue(0).ToString();
            string infoname = myReader.FDataReader.GetValue(1).ToString();

            result += "<input id=\""+infoid+"\" name=\"mangroup\" type=\"checkbox\" value=\"" + infoid + "\" />" + infoname+"&nbsp;";
        }
        myReader.Free();
        
        mailtypelist.Text = result;
    }
}
